package avicit.bdp.dds.dao.entity;

import avicit.bdp.common.base.BaseDTO;
import avicit.platform6.core.annotation.log.Id;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * DS流程定义实体类(bdp_process_definition_history)
 */
@Table(name = "bdp_process_definition_history")
public class ProcessDefinitionHistory extends BaseDTO {


    /**
     * id
     */
    @Id
    @javax.persistence.Id
    @Column(name = "id")
    private String id;

    /**
     * 流程id
     */
    @Column(name = "process_definition_id")
    private String processDefinitionId;


    /**
     * 版本名称
     */
    @Column(name = "definition_version")
    private String definitionVersion;


    /**
     * 版本号
     */
    @Column(name = "definition_version_no")
    private Integer definitionVersionNo;


    /**
     * 流程定义json
     */
    @Column(name = "process_definition_json")
    private String processDefinitionJson;

    /**
     * 节点位置json
     */
    @Column(name = "locations")
    private String locations;


    /**
     * 节点连接json
     */
    @Column(name = "connects")
    private String connects;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getProcessDefinitionId() {
        return processDefinitionId;
    }

    public void setProcessDefinitionId(String processDefinitionId) {
        this.processDefinitionId = processDefinitionId;
    }

    public String getDefinitionVersion() {
        return definitionVersion;
    }

    public void setDefinitionVersion(String definitionVersion) {
        this.definitionVersion = definitionVersion;
    }

    public Integer getDefinitionVersionNo() {
        return definitionVersionNo;
    }

    public void setDefinitionVersionNo(Integer definitionVersionNo) {
        this.definitionVersionNo = definitionVersionNo;
    }

    public String getProcessDefinitionJson() {
        return processDefinitionJson;
    }

    public void setProcessDefinitionJson(String processDefinitionJson) {
        this.processDefinitionJson = processDefinitionJson;
    }

    public String getLocations() {
        return locations;
    }

    public void setLocations(String locations) {
        this.locations = locations;
    }

    public String getConnects() {
        return connects;
    }

    public void setConnects(String connects) {
        this.connects = connects;
    }

    @Override
    public String toString() {
        return "ProcessDefinitionHistory{" +
                "id='" + id + '\'' +
                ", processDefinitionId='" + processDefinitionId + '\'' +
                ", definitionVersion='" + definitionVersion + '\'' +
                ", definitionVersionNo=" + definitionVersionNo +
                ", processDefinitionJson='" + processDefinitionJson + '\'' +
                ", locations='" + locations + '\'' +
                ", connects='" + connects + '\'' +
                '}';
    }
}
